<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.stream.GreedyStream</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.stream.GreedyStream";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.stream.GreedyStream.html" class="symbol">tango.io.stream.GreedyStream</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: June 2007
<p class="sec_header">Author:</p>Kris
<dl>
<dt class="decl">class <a class="symbol _class" name="GreedyInput" href="./htmlsrc/tango.io.stream.GreedyStream.html#L25" kind="class" beg="25" end="81">GreedyInput</a> : InputFilter; <a title="Permalink to this symbol" href="#GreedyInput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L25">#</a></dt>
<dd class="ddef">
<div class="summary">A conduit filter that ensures its input is read in full. There's
        also an optional readExact() for more explicit requests</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="GreedyInput.this" href="./htmlsrc/tango.io.stream.GreedyStream.html#L33" kind="ctor" beg="33" end="36">this</a><span class="params">(InputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#GreedyInput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L33">#</a></dt>
<dd class="ddef">
<div class="summary">Propagate ctor to superclass</div></dd>
<dt class="decl">uint <a class="symbol _function" name="GreedyInput.read" href="./htmlsrc/tango.io.stream.GreedyStream.html#L46" kind="function" beg="46" end="58">read</a><span class="params">(void[] <em>dst</em>)</span>; <span class="attrs">[<span class="stc">override</span>, <span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#GreedyInput.read" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L46">#</a></dt>
<dd class="ddef">
<div class="summary">Fill the provided array. Returns the number of bytes
                actually read, which will be less that dst.length when
                Eof has been reached, and then Eof thereafter</div></dd>
<dt class="decl">GreedyInput <a class="symbol _function" name="GreedyInput.readExact" href="./htmlsrc/tango.io.stream.GreedyStream.html#L70" kind="function" beg="70" end="80">readExact</a><span class="params">(void[] <em>dst</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#GreedyInput.readExact" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L70">#</a></dt>
<dd class="ddef">
<div class="summary">Read from a stream into a target array. The provided dst
                will be fully populated with content from the input.</div>
This differs from read in that it will throw an exception
                where an Eof condition is reached before input has completed</dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="GreedyOutput" href="./htmlsrc/tango.io.stream.GreedyStream.html#L92" kind="class" beg="92" end="149">GreedyOutput</a> : OutputFilter; <a title="Permalink to this symbol" href="#GreedyOutput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L92">#</a></dt>
<dd class="ddef">
<div class="summary">A conduit filter that ensures its output is written in full. There's
        also an optional writeExact() for more explicit requests</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="GreedyOutput.this" href="./htmlsrc/tango.io.stream.GreedyStream.html#L100" kind="ctor" beg="100" end="103">this</a><span class="params">(OutputStream <em>stream</em>)</span>; <a title="Permalink to this symbol" href="#GreedyOutput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L100">#</a></dt>
<dd class="ddef">
<div class="summary">Propagate ctor to superclass</div></dd>
<dt class="decl">uint <a class="symbol _function" name="GreedyOutput.write" href="./htmlsrc/tango.io.stream.GreedyStream.html#L114" kind="function" beg="114" end="126">write</a><span class="params">(void[] <em>src</em>)</span>; <span class="attrs">[<span class="stc">override</span>, <span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#GreedyOutput.write" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L114">#</a></dt>
<dd class="ddef">
<div class="summary">Consume everything we were given. Returns the number of
                bytes written which will be less than src.length only
                when an Eof condition is reached, and Eof from that point 
                forward</div></dd>
<dt class="decl">GreedyOutput <a class="symbol _function" name="GreedyOutput.writeExact" href="./htmlsrc/tango.io.stream.GreedyStream.html#L138" kind="function" beg="138" end="148">writeExact</a><span class="params">(void[] <em>src</em>)</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#GreedyOutput.writeExact" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.GreedyStream.html#L138">#</a></dt>
<dd class="ddef">
<div class="summary">Write to stream from a source array. The provided src content 
                will be written in full to the output.</div>
This differs from write in that it will throw an exception
                where an Eof condition is reached before output has completed</dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2007 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:01 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>